package com.example.market_management.model;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;




import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("product_order")
public class Order {

    @TableId(value = "order_id",type = IdType.ASSIGN_UUID)
    private  String  orderId;

    private Date   orderTime;

    private Integer  customerId;


    private String  productId;

    private  Integer  orderNum;

    private  Date  deliveryTime;

    private  Integer orderStatus;

    private  Date  startTime;

    private  String  deliveryAddress;

    private  Integer star;

    private String  appraise;

    @TableField(exist = false)
    private  Product product;

}
